class Cart {
  String goodsId;
  String goodsName;
  String goodsPic;
  double goodsPrice;
  int count;
  bool isSelect;

  Cart(
      {this.goodsId,
      this.goodsName,
      this.goodsPic,
      this.goodsPrice,
      this.count,
      this.isSelect});

  Cart.fromJson(json) {
    goodsId = json['goodsId'];
    goodsName = json['goodsName'];
    goodsPic = json['goodsPic'];
    goodsPrice = json['goodsPrice'];
    count = json['count'];
    isSelect = json['isSelect'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goodsId'] = this.goodsId;
    data['goodsName'] = this.goodsName;
    data['goodsPic'] = this.goodsPic;
    data['goodsPrice'] = this.goodsPrice;
    data['count'] = this.count;
    data['isSelect'] = this.isSelect;
    return data;
  }
}
